<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
   <title>广元电业局低质易耗品管理平台</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript">
      function validateAll(){
         if($("#notTitle").val()==''){alert("请填写公告名称");$("#notTitle").focus();return false;} 
         if($("#notBody").val()==''){alert("请填写公告内容");$("#notBody").focus();return false;} 
         return true; 
          }
    </script>

  </head>
  
  <body class="ContentBody">
    <form action="addnotice.action" method="post" onsubmit="return validateAll()" enctype="multipart/form-data">
<div class="MainDiv">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >公告发布</th>
  </tr>
  <tr>
    <td class="CPanel">
		<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
		<tr>		
		   <td width="100%">
			  <fieldset style="height:100%;">
				<legend>公告信息</legend>	      
					  <table border="0" cellpadding="2" cellspacing="1" style="width:100%">					 
					  <tr>
					    <td align="right">公告名称:</td>
					      <td>
					        <input type="text" name="notTitle" id="notTitle" />
                         </td>
					   <td align="right"></td>
					     <td>
                        </td>
					  </tr>	
					  <tr>	
					   <td nowrap="nowrap" align="right" width="15%">公告正文:</td>
					    <td width="35%">
					     	 <textarea id="notBody" name="notBody" cols="80" rows="8" wrap="physical"></textarea>
					    </td>	             
					   <td align="right"></td>
					   <td></td>  
					  </tr>
					  <tr>
					    <td nowrap="nowrap" align="right" width="15%">附件:</td>
					    <td width="35%"><input id="notURL" name="notURL" type="file"/></td>             
					   <td align="right"></td>
					   <td width="35%"></td>
					  </tr> 
					  <tr> 
					    <td align="right">公告状态:</td>
					    <td>
					       <select id="notStatus" name="notStatus">
					   <option value="Y" selected="selected">在用</option>
					   <option value="N">停用</option>
					   </select>
					    </td>  
					    <td align="right"></td>
					    <td></td>
					  </tr>
				</table>
			  <br />
			</fieldset>	
		</td>
	</tr>
</table>	
 </td>
 </tr>			
		<tr>
			<td colspan="2" align="center" height="50px">
			<input type="submit" name="Submit" value="保存" />　
			<input type="button" name="Submit2" value="返回" onclick="window.history.go(-1);"/>
			</td>
		</tr> 
 </table>
</div>
</form>
</body>
</html>
